package cn.kgc.watch.mapper;

import cn.kgc.watch.entity.CartShopping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartShoppingMapper {
    List<CartShopping> selectCartShopping(@Param("id") Integer id);

    void decInc(@Param("cartShopping") CartShopping cartShopping);


    void updateQuantity(@Param("cartShoppingId") Integer cartShoppingId, @Param("quantity") Integer quantity);

    void updateAll(@Param("cartShopping") CartShopping cartShopping);

    Integer selectCartId(@Param("id") Integer id);

    void deleteCartShopping(@Param("cartShoppingId") Integer cartShoppingId);

    void insertCartShopping(CartShopping cartShopping);

    Integer selectCartShoppingById(Integer id);

    void updateCartShopping(CartShopping cartShopping);

    void deleteCartShoppingByOrder(@Param("cartId") Integer id,@Param("skuId") Long id1);
}
